package com.jielin.handling.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author chenzhang
 * @date 2020/8/10 - 13:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CallPoliceProportion {

    private String id;
    //每种类型的数目
    private int count;
    //总数
    private String allCount;
    //每种类型的比例
    private String proportion;
    //本月数据
    private int lastCounnt;
    //上个月的数据
    private int thisCounnt;
    //无效警情总数
    private int invalidPoliceCount;
    //上个月无效警情总数
    private int lastInvalidPoliceCount;
    //当月无效警情 总数
    private int thisInvalidPoliceCount;
    //重大警情总数
    private int bigCount;
    //上个月重大警情总数
    private int lastBigCount;
    //当月重大警情总数
    private int thisBigCount;
    //三合一警情总数
    private int outCount;
    //三合一上个月警情
    private int lastOutCount;
    //三合一当月警情
    private int thisOutCount;
    //单位编号字符串
    private String unitCodes;

    private int pageSize;

    private int pageNum;

    private String unitCode;

    // 自定义属性:是否有下级单位0不是1是
    private Boolean isHaveChildUnit;

    private int bigCase;//重大案情数
    private String bigCaseRation;//重大案情数比例

    private int outCase;//涉外案情数
    private String outCaseRation;//涉外案情数所占比例

    private int invalidCase;//无效案情数
    private String invalidCaseRation;//无效案情数比例

    private int EffectiveCase;//有效案件数
    private String EffectiveCaseRation;//有效案件数比例

    private int handleCase;//处警数
    private String handleCaseRation;//处警数比例

    private int receivedCase;//接警数
    private String receivedCaseRation;//接警数比例

    private String orgName;//单位名称

    private String orgId;//单位id
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    private String[] array;

}
